void CDocViewView::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default
	CDocViewDoc *pDoc = GetDocument();
 	if(nChar == VK_RETURN)
	{
		m_strDisplay.Empty();
		m_nLine++;
	}
	else if(m_strDisplay.GetLength() < 64)
	{
		m_strDisplay += nChar;
	}
	CClientDC dc(this);
	TEXTMETRIC tm;
	dc.GetTextMetrics(&tm);
	int nLineHeight = tm.tmHeight + tm.tmExternalLeading;
	dc.TextOut(0, m_nLine * nLineHeight, m_strDisplay);
	
	CView::OnChar(nChar, nRepCnt, nFlags);
}
